3.4.14 \(\int \frac {(f+g x^2) \log (c (d+e x^2)^p)}{x^3} \, dx\) [314]

Optimal. Leaf size=93 \[ \frac {e f p \log (x)}{d}-\frac {e f p \log \left (d+e x^2\right )}{2 d}-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{2 x^2}+\frac {1}{2} g \log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )+\frac {1}{2} g p \text {Li}_2\left (1+\frac {e x^2}{d}\right ) \]

[Out]

e*f*p*ln(x)/d-1/2*e*f*p*ln(e*x^2+d)/d-1/2*f*ln(c*(e*x^2+d)^p)/x^2+1/2*g*ln(-e*x^2/d)*ln(c*(e*x^2+d)^p)+1/2*g*p
*polylog(2,1+e*x^2/d)

________________________________________________________________________________________

Rubi [A]
time = 0.08, antiderivative size = 93, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 9, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.391, Rules used = {2525, 45, 2463, 2442, 36, 29, 31, 2441, 2352} \begin {gather*} \frac {1}{2} g p \text {PolyLog}\left (2,\frac {e x^2}{d}+1\right )-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{2 x^2}+\frac {1}{2} g \log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )-\frac {e f p \log \left (d+e x^2\right )}{2 d}+\frac {e f p \log (x)}{d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((f + g*x^2)*Log[c*(d + e*x^2)^p])/x^3,x]

[Out]

(e*f*p*Log[x])/d - (e*f*p*Log[d + e*x^2])/(2*d) - (f*Log[c*(d + e*x^2)^p])/(2*x^2) + (g*Log[-((e*x^2)/d)]*Log[
c*(d + e*x^2)^p])/2 + (g*p*PolyLog[2, 1 + (e*x^2)/d])/2

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 36

Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x), x], x] -
Dist[d/(b*c - a*d), Int[1/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2352

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-e^(-1))*PolyLog[2, 1 - c*x], x] /; FreeQ[{c, d, e
}, x] && EqQ[e + c*d, 0]

Rule 2441

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[Log[e*((f + g
*x)/(e*f - d*g))]*((a + b*Log[c*(d + e*x)^n])/g), x] - Dist[b*e*(n/g), Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2442

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Simp[(f + g*
x)^(q + 1)*((a + b*Log[c*(d + e*x)^n])/(g*(q + 1))), x] - Dist[b*e*(n/(g*(q + 1))), Int[(f + g*x)^(q + 1)/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, q}, x] && NeQ[e*f - d*g, 0] && NeQ[q, -1]

Rule 2463

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((h_.)*(x_))^(m_.)*((f_) + (g_.)*(x_)^(r_.))^(q
_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*Log[c*(d + e*x)^n])^p, (h*x)^m*(f + g*x^r)^q, x], x] /; FreeQ[{a,
 b, c, d, e, f, g, h, m, n, p, q, r}, x] && IntegerQ[m] && IntegerQ[q]

Rule 2525

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m_.)*((f_) + (g_.)*(x_)^(s_))^(r_.),
 x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(f + g*x^(s/n))^r*(a + b*Log[c*(d + e*x)^p])^q,
x], x, x^n], x] /; FreeQ[{a, b, c, d, e, f, g, m, n, p, q, r, s}, x] && IntegerQ[r] && IntegerQ[s/n] && Intege
rQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0])

Rubi steps

\begin {align*} \int \frac {\left (f+g x^2\right ) \log \left (c \left (d+e x^2\right )^p\right )}{x^3} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {(f+g x) \log \left (c (d+e x)^p\right )}{x^2} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {f \log \left (c (d+e x)^p\right )}{x^2}+\frac {g \log \left (c (d+e x)^p\right )}{x}\right ) \, dx,x,x^2\right )\\ &=\frac {1}{2} f \text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{x^2} \, dx,x,x^2\right )+\frac {1}{2} g \text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{x} \, dx,x,x^2\right )\\ &=-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{2 x^2}+\frac {1}{2} g \log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )+\frac {1}{2} (e f p) \text {Subst}\left (\int \frac {1}{x (d+e x)} \, dx,x,x^2\right )-\frac {1}{2} (e g p) \text {Subst}\left (\int \frac {\log \left (-\frac {e x}{d}\right )}{d+e x} \, dx,x,x^2\right )\\ &=-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{2 x^2}+\frac {1}{2} g \log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )+\frac {1}{2} g p \text {Li}_2\left (1+\frac {e x^2}{d}\right )+\frac {(e f p) \text {Subst}\left (\int \frac {1}{x} \, dx,x,x^2\right )}{2 d}-\frac {\left (e^2 f p\right ) \text {Subst}\left (\int \frac {1}{d+e x} \, dx,x,x^2\right )}{2 d}\\ &=\frac {e f p \log (x)}{d}-\frac {e f p \log \left (d+e x^2\right )}{2 d}-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{2 x^2}+\frac {1}{2} g \log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )+\frac {1}{2} g p \text {Li}_2\left (1+\frac {e x^2}{d}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 92, normalized size = 0.99 \begin {gather*} \frac {e f p \log (x)}{d}-\frac {e f p \log \left (d+e x^2\right )}{2 d}-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{2 x^2}+\frac {1}{2} g \left (\log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )+p \text {Li}_2\left (\frac {d+e x^2}{d}\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((f + g*x^2)*Log[c*(d + e*x^2)^p])/x^3,x]

[Out]

(e*f*p*Log[x])/d - (e*f*p*Log[d + e*x^2])/(2*d) - (f*Log[c*(d + e*x^2)^p])/(2*x^2) + (g*(Log[-((e*x^2)/d)]*Log
[c*(d + e*x^2)^p] + p*PolyLog[2, (d + e*x^2)/d]))/2

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 0.12, size = 421, normalized size = 4.53

method result size
risch \(\ln \left (\left (e \,x^{2}+d \right )^{p}\right ) g \ln \left (x \right )-\frac {\ln \left (\left (e \,x^{2}+d \right )^{p}\right ) f}{2 x^{2}}+\frac {e f p \ln \left (x \right )}{d}-\frac {e f p \ln \left (e \,x^{2}+d \right )}{2 d}-p g \ln \left (x \right ) \ln \left (\frac {-e x +\sqrt {-e d}}{\sqrt {-e d}}\right )-p g \ln \left (x \right ) \ln \left (\frac {e x +\sqrt {-e d}}{\sqrt {-e d}}\right )-p g \dilog \left (\frac {-e x +\sqrt {-e d}}{\sqrt {-e d}}\right )-p g \dilog \left (\frac {e x +\sqrt {-e d}}{\sqrt {-e d}}\right )+\frac {i \pi \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{3} f}{4 x^{2}}+\frac {i \pi \,\mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2} g \ln \left (x \right )}{2}-\frac {i \pi \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right ) f}{4 x^{2}}-\frac {i \pi \,\mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2} f}{4 x^{2}}-\frac {i \pi \,\mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \right ) g \ln \left (x \right )}{2}+\frac {i \pi \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right ) g \ln \left (x \right )}{2}+\frac {i \pi \,\mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \right ) f}{4 x^{2}}-\frac {i \pi \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{3} g \ln \left (x \right )}{2}+\ln \left (c \right ) g \ln \left (x \right )-\frac {\ln \left (c \right ) f}{2 x^{2}}\) \(421\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((g*x^2+f)*ln(c*(e*x^2+d)^p)/x^3,x,method=_RETURNVERBOSE)

[Out]

ln((e*x^2+d)^p)*g*ln(x)-1/2*ln((e*x^2+d)^p)*f/x^2+e*f*p*ln(x)/d-1/2*e*f*p*ln(e*x^2+d)/d-p*g*ln(x)*ln((-e*x+(-e
*d)^(1/2))/(-e*d)^(1/2))-p*g*ln(x)*ln((e*x+(-e*d)^(1/2))/(-e*d)^(1/2))-p*g*dilog((-e*x+(-e*d)^(1/2))/(-e*d)^(1
/2))-p*g*dilog((e*x+(-e*d)^(1/2))/(-e*d)^(1/2))+1/4*I*Pi*csgn(I*c*(e*x^2+d)^p)^3*f/x^2+1/2*I*Pi*csgn(I*(e*x^2+
d)^p)*csgn(I*c*(e*x^2+d)^p)^2*g*ln(x)-1/4*I*Pi*csgn(I*c*(e*x^2+d)^p)^2*csgn(I*c)*f/x^2-1/4*I*Pi*csgn(I*(e*x^2+
d)^p)*csgn(I*c*(e*x^2+d)^p)^2*f/x^2-1/2*I*Pi*csgn(I*(e*x^2+d)^p)*csgn(I*c*(e*x^2+d)^p)*csgn(I*c)*g*ln(x)+1/2*I
*Pi*csgn(I*c*(e*x^2+d)^p)^2*csgn(I*c)*g*ln(x)+1/4*I*Pi*csgn(I*(e*x^2+d)^p)*csgn(I*c*(e*x^2+d)^p)*csgn(I*c)*f/x
^2-1/2*I*Pi*csgn(I*c*(e*x^2+d)^p)^3*g*ln(x)+ln(c)*g*ln(x)-1/2*ln(c)*f/x^2

________________________________________________________________________________________

Maxima [A]
time = 0.54, size = 99, normalized size = 1.06 \begin {gather*} \frac {1}{2} \, {\left (\log \left (x^{2} e + d\right ) \log \left (-\frac {x^{2} e + d}{d} + 1\right ) + {\rm Li}_2\left (\frac {x^{2} e + d}{d}\right )\right )} g p + \frac {{\left (f p e + d g \log \left (c\right )\right )} \log \left (x\right )}{d} - \frac {d f \log \left (c\right ) + {\left (f p x^{2} e + d f p\right )} \log \left (x^{2} e + d\right )}{2 \, d x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x^2+f)*log(c*(e*x^2+d)^p)/x^3,x, algorithm="maxima")

[Out]

1/2*(log(x^2*e + d)*log(-(x^2*e + d)/d + 1) + dilog((x^2*e + d)/d))*g*p + (f*p*e + d*g*log(c))*log(x)/d - 1/2*
(d*f*log(c) + (f*p*x^2*e + d*f*p)*log(x^2*e + d))/(d*x^2)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x^2+f)*log(c*(e*x^2+d)^p)/x^3,x, algorithm="fricas")

[Out]

integral((g*x^2 + f)*log((x^2*e + d)^p*c)/x^3, x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (f + g x^{2}\right ) \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{x^{3}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x**2+f)*ln(c*(e*x**2+d)**p)/x**3,x)

[Out]

Integral((f + g*x**2)*log(c*(d + e*x**2)**p)/x**3, x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x^2+f)*log(c*(e*x^2+d)^p)/x^3,x, algorithm="giac")

[Out]

integrate((g*x^2 + f)*log((x^2*e + d)^p*c)/x^3, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\ln \left (c\,{\left (e\,x^2+d\right )}^p\right )\,\left (g\,x^2+f\right )}{x^3} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((log(c*(d + e*x^2)^p)*(f + g*x^2))/x^3,x)

[Out]

int((log(c*(d + e*x^2)^p)*(f + g*x^2))/x^3, x)

________________________________________________________________________________________